array := ["a-phone", "b-phone", "a-pad"]    # example data

set_of_phones := {
    item |
        some item in array
        endswith(item,"-phone")
}

array_of_phones := [
    item |
        some item in array
        endswith(item,"-phone")
]

object_of_phones := {
    key:item |
        some index,item in array
        endswith(item,"-phone")
        key := sprintf("x-%v",[index])
}
